/*! 
 * WeX5 v3 (http://www.justep.com) 
 * Copyright 2015 Justep, Inc.
 * Licensed under Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) 
 */
define(function(require) {
	var $ = require("jquery");
	var ViewComponent = require("$UI/wxsys/comps/designerCommon/js/viewDesignerComponent");
	require('css!$UI/system/designer/webIde/common/font/style').load();
	require("css!./css/sysConfig.css").load();

	function create(comp, clz) {
		var $domNode = comp.$domNode;
		comp.domNode.style.position = "absolute";
		if (!comp.domNode.style.top) {
			comp.domNode.style.top = "10px";
			comp.domNode.style.left = "10px";
		}
		$domNode.addClass(clz);
	}

	var SysConfig = ViewComponent.extend({
		init : function(value, bindingContext) {
			create(this, 'x-sysConfig');
			this.callParent(value, bindingContext);
			this.$domNode.attr("d_canAddChild", "false");
		},
	});
	var quickIdeEx = {
		"sysconComp:sysConfig" : {
			properties : [ {
				name : "label",
				text : "显示名称"
			} ],
		}  
	};
	return {
		'sysconComp:sysConfig' : SysConfig,
		quickIdeEx : quickIdeEx
	};
});